package com.xingchen.springboot3.mapper;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.xingchen.springboot3.pojo.dto.CategoryDto;
import com.xingchen.springboot3.pojo.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *
 * @author weijingchen
 * @DateTime 2025-09-26
 */
@Mapper
public interface CategroyMapper {

    void add(Category category);

    void update(Category category);

    void delete(Integer id);

    Page<Category> list(CategoryDto dto);

    Category getById(Integer id);
}
